package com.business.user.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 用户详细信息表 实体类
 * @author chenjiehong
 * @date 2019-12-03 10:07:50
 * @since 1.0
 */
@TableName(value = "user_details")
public class UserDetails {


    // columns START

	@TableId(value = "user_id",type=IdType.INPUT)
	private Integer userId;

	/**
	 * 名称
	 */
	@TableField(value = "real_name")
	private String realName;

	/**
	 * 简介，描述
	 */
	private String synopsis;

	/**
	 * 公司
	 */
	private String company;

	/**
	 * 名片地址，或者二维码
	 */
	@TableField(value = "card_url")
	private String cardUrl;

	/**
	 * 头像url
	 */
	@TableField(value = "head_url")
	private String headUrl;

	/**
	 * 性别 0：未知、1：男、2：女
	 */
	private Integer sex;

	/**
	 * 职位
	 */
	private String profession;

	/**
	 * 修改时间
	 */
	@TableField(value = "update_time")
	private Date updateTime;

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time")
	private Date createTime;

	/**
	 * 国家
	 */
	private String country;

	/**
	 * 省份编码
	 */
	@TableField(value = "province_code")
	private String provinceCode;

	/**
	 * 省份名称
	 */
	@TableField(value = "province_name")
	private String provinceName;

	/**
	 * 城市编码
	 */
	@TableField(value = "city_code")
	private String cityCode;

	/**
	 * 城市名称
	 */
	@TableField(value = "city_name")
	private String cityName;

	/**
	 * 信息完整度 范围0-100
	 */
	private Integer degree;

	/**
	 * 夫行业类别编码
	 */
	@TableField(value = "parent_category_code")
	private String parentCategoryCode;

	/**
	 * 夫行业类别名称
	 */
	@TableField(value = "parent_category_name")
	private String parentCategoryName;

	/**
	 * 子行业类别名称
	 */
	@TableField(value = "sub_category_name")
	private String subCategoryName;

	/**
	 * 子行业类别编码
	 */
	@TableField(value = "sub_category_code")
	private String subCategoryCode;

	/**
	 * 用户类型 0：普通用户 1:会员
	 */
	private Integer type;


	/**
	 * 状态 0：删除 1：正常  2：冻结
	 */
	private Integer state;

	/**
	 * 信用级别 0：未认证 1：实名认证
	 */
	@TableField(value = "credit_level")
	private Integer creditLevel;

	/**
	 * 会员到期时间
	 */
	@TableField(value = "expire_time")
	private Date expireTime;

	/**
	 * 标签 逗号分割
	 */
	@TableField(value = "tags")
	private String tags;
	// columns END


	public Integer getUserId() {
		return userId;
	}

    public void setUserId(Integer userId) {
    	this.userId = userId;
    }

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getSynopsis() {
		return synopsis;
	}

    public void setSynopsis(String synopsis) {
    	this.synopsis = synopsis;
    }
	public String getCompany() {
		return company;
	}

    public void setCompany(String company) {
    	this.company = company;
    }
	public String getCardUrl() {
		return cardUrl;
	}

    public void setCardUrl(String cardUrl) {
    	this.cardUrl = cardUrl;
    }
	public String getHeadUrl() {
		return headUrl;
	}

    public void setHeadUrl(String headUrl) {
    	this.headUrl = headUrl;
    }
	public Integer getSex() {
		return sex;
	}

    public void setSex(Integer sex) {
    	this.sex = sex;
    }
	public String getProfession() {
		return profession;
	}

    public void setProfession(String profession) {
    	this.profession = profession;
    }
	public Date getUpdateTime() {
		return updateTime;
	}

    public void setUpdateTime(Date updateTime) {
    	this.updateTime = updateTime;
    }
	public Date getCreateTime() {
		return createTime;
	}

    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }
	public String getCountry() {
		return country;
	}

    public void setCountry(String country) {
    	this.country = country;
    }
	public String getProvinceCode() {
		return provinceCode;
	}

    public void setProvinceCode(String provinceCode) {
    	this.provinceCode = provinceCode;
    }
	public String getProvinceName() {
		return provinceName;
	}

    public void setProvinceName(String provinceName) {
    	this.provinceName = provinceName;
    }
	public String getCityCode() {
		return cityCode;
	}

    public void setCityCode(String cityCode) {
    	this.cityCode = cityCode;
    }
	public String getCityName() {
		return cityName;
	}

    public void setCityName(String cityName) {
    	this.cityName = cityName;
    }
	public Integer getDegree() {
		return degree;
	}

    public void setDegree(Integer degree) {
    	this.degree = degree;
    }
	public String getParentCategoryCode() {
		return parentCategoryCode;
	}

    public void setParentCategoryCode(String parentCategoryCode) {
    	this.parentCategoryCode = parentCategoryCode;
    }
	public String getParentCategoryName() {
		return parentCategoryName;
	}

    public void setParentCategoryName(String parentCategoryName) {
    	this.parentCategoryName = parentCategoryName;
    }
	public String getSubCategoryName() {
		return subCategoryName;
	}

    public void setSubCategoryName(String subCategoryName) {
    	this.subCategoryName = subCategoryName;
    }
	public String getSubCategoryCode() {
		return subCategoryCode;
	}

    public void setSubCategoryCode(String subCategoryCode) {
    	this.subCategoryCode = subCategoryCode;
    }
	public Integer getType() {
		return type;
	}

    public void setType(Integer type) {
    	this.type = type;
    }
	public Integer getCreditLevel() {
		return creditLevel;
	}

    public void setCreditLevel(Integer creditLevel) {
    	this.creditLevel = creditLevel;
    }
	public Date getExpireTime() {
		return expireTime;
	}

    public void setExpireTime(Date expireTime) {
    	this.expireTime = expireTime;
    }

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	@Override
	public String toString() {
		String log = "";
		log += "[userId:" + getUserId() + "]";
		log += "[realName:" + getRealName() + "]";
		log += "[synopsis:" + getSynopsis() + "]";
		log += "[company:" + getCompany() + "]";
		log += "[cardUrl:" + getCardUrl() + "]";
		log += "[headUrl:" + getHeadUrl() + "]";
		log += "[sex:" + getSex() + "]";
		log += "[profession:" + getProfession() + "]";
		log += "[updateTime:" + getUpdateTime() + "]";
		log += "[createTime:" + getCreateTime() + "]";
		log += "[country:" + getCountry() + "]";
		log += "[provinceCode:" + getProvinceCode() + "]";
		log += "[provinceName:" + getProvinceName() + "]";
		log += "[cityCode:" + getCityCode() + "]";
		log += "[cityName:" + getCityName() + "]";
		log += "[degree:" + getDegree() + "]";
		log += "[parentCategoryCode:" + getParentCategoryCode() + "]";
		log += "[parentCategoryName:" + getParentCategoryName() + "]";
		log += "[subCategoryName:" + getSubCategoryName() + "]";
		log += "[subCategoryCode:" + getSubCategoryCode() + "]";
		log += "[type:" + getType() + "]";
		log += "[creditLevel:" + getCreditLevel() + "]";
		log += "[expireTime:" + getExpireTime() + "]";
		return log;
	}
}